package com.ambow.Entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


//书费
@Entity
@Table
public class BookFee  extends ID{
	@Column(nullable=false)
	private String academicyear;//学年
	@Column(nullable=false)
	private String semester;//学期
	@Column(nullable=false)
	private Double payFee;//已缴费金额
	@Column(nullable=false)
	private Double nPayFee;//未缴费金额
	
	@ManyToOne
	@JoinColumn(name="bclass_id",referencedColumnName="id")
	private Bclass bclass;
	@ManyToOne
	@JoinColumn(name="student_id",referencedColumnName="id")
	private Student student;
	
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	
	/**
	 * @return the bclass
	 */
	public Bclass getBclass() {
		return bclass;
	}
	/**
	 * @param bclass the bclass to set
	 */
	public void setBclass(Bclass bclass) {
		this.bclass = bclass;
	}
	public Double getnPayFee() {
		return nPayFee;
	}
	public void setnPayFee(Double double1) {
		this.nPayFee = double1;
	}
	public String getAcademicyear() {
		return academicyear;
	}
	public void setAcademicyear(String academicyear) {
		this.academicyear = academicyear;
	}
	public String getSemester() {
		return semester;
	}
	public void setSemester(String semester) {
		this.semester = semester;
	}
	public Double getPayFee() {
		return payFee;
	}
	public void setPayFee(Double payFee) {
		this.payFee = payFee;
	}
	
}
